home *** CD-ROM | disk | FTP | other *** search
/ MPC Wizard 2.0 / MPC Wizard 2.0 (Aris Entertainment) (1993).iso / wizsetup / hercgrph / upwin.bat < prev    next >
DOS Batch File  |  1992-12-30  |  1KB  |  53 lines

  1. @echo off
  2. rem  Version 1.0  December 30,1992
  3. echo Hercules Graphite Card (tm) - Windows drivers update.
  4. echo.
  5. if "%1"=="" goto errmes1
  6. if "%2"=="" goto errmes1
  7.  
  8. rem Detect whether it is a valid Windows directory.
  9. if not exist %2\win.com goto errmes2
  10.  
  11. rem Detect whether there is a SYSTEM sub-directory.
  12. rem When Windows is on a network, the local Windows directory will
  13. rem have no SYSTEM sub-directory.
  14. if not exist %2\system\win.cnf goto nosystem
  15.  
  16. set windest=%2\system
  17. goto copying
  18. :nosystem
  19. set windest=%2
  20. :copying
  21.  
  22. if not exist %windest%\vddagx.386 goto errmes3
  23. echo Copying %1\vddagx.386 to %windest% ...
  24. copy %1\vddagx.386 %windest% /v
  25. echo Copying %1\agx.drv to %windest% ...
  26. copy %1\agx.drv %windest% /v
  27. echo Copying %1\agx64016.drv to %windest% ...
  28. copy %1\agx64016.drv %windest% /v
  29. echo Copying %1\agx64024.drv to %windest% ...
  30. copy %1\agx64024.drv %windest% /v
  31. echo Copying %1\agx80016.drv to %windest% ...
  32. copy %1\agx80016.drv %windest% /v
  33. echo Update completed. Remember to run Windows' SETUP next.
  34. goto exit
  35.  
  36. :errmes2
  37. echo Invalid Windows directory.
  38. echo.
  39.  
  40. :errmes1
  41. echo Usage: upwin [source drive:] [Windows directory]
  42. echo    eg. upwin  A:  C:\WINDOWS
  43. goto exit
  44.  
  45. :errmes3
  46. echo Previous version of Graphite Windows drivers not found.
  47. echo You must have the drivers installed previously to use UPWIN.
  48. goto exit
  49.  
  50. :exit
  51. echo.
  52.  
  53.